#include "Blocks/MagnetBlock.h"

namespace PocketSurvival
{
    int32_t MagnetBlock::getIndex()
    {
        return Index();
    }
    const std::string &MagnetBlock::getBlockName()
    {
        static std::string blockName = "MagnetBlock";
        return blockName;
    }

    const std::vector<BoundingBox> &MagnetBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t num = Terrain::ExtractData(value);
        if(num < GET_ARRAY_LEN(BlockConstans::magnetCollisionBoxes))
        {
            return BlockConstans::magnetCollisionBoxes[num];
        }
        return Block::getCustomCollisionBoxes(value);
    }
}